package base.response;

import com.github.pagehelper.Page;

import java.util.List;

/**
 * Created by Administrator on 2017/9/13.
 */
public class OffsetLimitPage {
    private Long total;
    private List rows;

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    public OffsetLimitPage() {

    }

    public OffsetLimitPage(List rows, Long total) {
        this.rows = rows;
        this.total = total;
    }

    public OffsetLimitPage(Page rows) {
        this(rows,rows.getTotal());
    }
}
